package pojo

import "time"

type TestReport struct {
	Id        int64
	FileName  string
	CreatedAt time.Time `gorm:"autoCreateTime" json:"-"`
	UpdatedAt time.Time `gorm:"autoUpdateTime" json:"-"`
}

type User struct {
	Id        int64     `json:"-"`
	Username  string    `json:"username"`
	Password  string    `json:"passWord"`
	CreatedAt time.Time `gorm:"autoCreateTime" json:"-"`
	UpdatedAt time.Time `gorm:"autoUpdateTime" json:"-"`
}

type Field struct {
	Id         int64
	Name       string
	Mold       int
	MoldName   string
	Picture    string
	OptionList []*Option `gorm:"-"`
	CreatedAt  time.Time `gorm:"autoCreateTime"`
	UpdatedAt  time.Time `gorm:"autoUpdateTime"`
}

type ResField struct {
	Id        string
	Name      string
	Mold      int
	MoldName  string
	Picture   string
	CreatedAt string
	UpdatedAt string
}

type Option struct {
	Id        int64
	Name      string
	FieldId   int64
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Project struct {
	Id        int64
	Name      string
	FieldList []*Field `gorm:"-"`
	CreatedAt time.Time
	UpdatedAt time.Time
}

type ProjectField struct {
	Id        int64
	FieldId   int64
	ProjectId int64
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Case struct {
	Id            int64
	Describe      string // 标题
	ProjectId     int64
	Priority      int
	State         int
	Creator       string
	ShowFieldList []*ShowField `gorm:"-"`
	CreatedAt     time.Time
	UpdatedAt     time.Time
}

type ShowField struct {
	Id        int64
	Name      string
	Mold      int
	MoldName  string
	Value     string
	CreatedAt time.Time
	UpdatedAt time.Time
}

type CaseField struct {
	Id        int64
	CaseId    int64
	FieldId   int64
	Value     string
	CreatedAt time.Time
	UpdatedAt time.Time
}
